/****************/
/* Your Name	*/
/* Date		*/
/* CS 244B	*/
/* Spring 1994	*/
/****************/

#ifndef RFCLIENT_H
#define RFCLIENT_H


enum {
  NormalReturn = 0,
  ErrorReturn = -1,
};

/* ------------------------------------------------------------------ */

#ifdef ASSERT_DEBUG
#define ASSERT(ASSERTION) \
 { assert(ASSERTION); }
#else
#define ASSERT(ASSERTION) \
{ }
#endif

/* ------------------------------------------------------------------ */

	/********************/
	/* Client Functions */
	/********************/
extern int InitReplFs( unsigned short portNum, int packetLoss );
extern int AddServer(char * id);
extern int OpenFile(char * strFileName);
extern int WriteBlock(int fd, char * strData, int byteOffset, int blockSize);
extern int Commit(int fd);
extern int Abort(int fd);
extern int CloseFile(int fd);

/* ------------------------------------------------------------------ */



#endif
